"""
OK

Read every tweet from file

"""

import json
import pandas as pd

json_lines = open("../data/search_spider.jsonl", encoding="UTF-8").readlines()

data = {"time": [], "content": []}

for line in json_lines:
    tweet = json.loads(line)
    data["time"].append(tweet["created_at"])
    data["content"].append(tweet["content"])

data = pd.DataFrame(data)

print(data)
